<?php
	require_once('actions/login/scripts/validate-login.php');
	if (isset($_POST['form-action'])) { //se envio formulario
		$validacion = validarLogin();
		if ($validacion) { //fallo validacion
			require_once('actions/login/view/login.php');
		} else { //si valido correcto
			$_SESSION['login'] = true; //aca deberia traer id y permisos!
			header('Location: '.$host);
		}
	} else require_once('actions/login/view/login.php');
?>